﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebSocketChatServer
{

    public class Code
    {
        private int codeNum;
        private string note;
        public Code(int codeNum, string note)
        {
            this.codeNum = codeNum;
            this.note = note;
        }

        /// <summary>
        /// 成功
        /// </summary>
        public static int SUCCESS = 200;
        /// <summary>
        /// 上线
        /// </summary>
        public static int ONLINE = 1001;
        /// <summary>
        /// 下线
        /// </summary>
        public static int OUTLINE = 1004;
        /// <summary>
        /// 客户端发送数据
        /// </summary>
        public static int SEND_MESSAGE = 1002;
        /// <summary>
        /// 服务端分发数据
        /// </summary>
        public static int RECEIVE_MESSAGE = 1003;
    }
}
